//
//  BPCustomView.h
//  BeautyPicture
//
//  Created by 沈振邦 on 15/9/20.
//  Copyright (c) 2015年 szb. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BPProductModel.h"

@class BPCustomView;

@protocol BPCustomViewDelegate <NSObject>

@optional

- (void)backViewTapOne:(UITapGestureRecognizer *)sender;

- (void)backViewPressLong:(UILongPressGestureRecognizer *)sender;
//旋转
//- (void)rotationAlaset:(UIRotationGestureRecognizer *)sender;
////缩放
//- (void)pinchAlaset:(UIPinchGestureRecognizer *)sender;
////平移
//- (void)panAlaset:(UIPanGestureRecognizer *)sender;

@end

@interface BPCustomView : UIView

/** 用来放照片 */
@property (nonatomic,strong)UIImageView *assetImage;

/** 用来照片的view*/
@property (nonatomic,strong)UIView *showAssetView;

/** 照片上的黑色块 */
@property (nonatomic, strong) UIImageView *imageVBlock;

/** 用来提醒像素的image*/
@property (nonatomic,strong)UIImageView *nopxImage;

@property (nonatomic,strong)UIImageView *noPicImage;

/** 单击手势*/
@property (nonatomic,strong)UITapGestureRecognizer *tapOne;

@property (nonatomic,strong)ALAssetsLibrary *library;

@property (nonatomic,assign)CGFloat maxScale;

@property (nonatomic,assign)CGFloat assetWith;

@property (nonatomic,weak)id<BPCustomViewDelegate> delegate;

- (void)addImageModel:(BPProductModel *)imageModel addScale:(CGFloat)scale addAssetarry:(ALAsset *)asset;

- (void)setUpnopxImageView;

- (void)removePXimage;

- (void)removenoPicimage;

- (void)reset;

@end
